package com.saodisheng.controller;

import com.jfinal.kit.Ret;
import com.saodisheng.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;

public class AdminLogController extends BaseController {
	@Autowired
	private AdminLogService logService;
	public void index()
	{
		setAttr("logPgae", logService.getLoginLog(getParaToInt("p", 1)));
		render("index.html");
	}
	
	public void delete()
	{
		Ret ret = logService.delLog(getParaToInt("logId"));
		renderJson(ret);
	}
	
	public void deleteAll()
	{
		Ret ret = logService.delAllLog();
		renderJson(ret);
	}
}
